import { defineStore } from 'pinia'
import { getFeaturedDrinks } from '@/api/drinksApi'

export const useFeaturedDrinkStore = defineStore('featuredDrink', {
  state: () => ({
    featuredDrinks: []
  }),
  actions: {
    async fetchFeaturedDrinks() {
      this.featuredDrinks = await getFeaturedDrinks()
    }
  }
})